<template>
  <div class="set">
    <el-card class="box-card" shadow="always">
      <template #header>
        <div class="card-header">
          <span>开播设置</span>
        </div>
      </template>
      <div class="set_body">
        <el-form :model="form" label-width="100px" size="large" :inline="false">
          <el-form-item label="直播标题：">
            <el-input></el-input>
          </el-form-item>

          <el-form-item label="开启回放：">
            <el-switch :active-value="true" :inactive-value="false">
            </el-switch>
          </el-form-item>

          <el-form-item label="推流地址：">
            <el-input>
              <template #append>复制</template>
            </el-input>
          </el-form-item>

          <el-form-item label="拉流地址1：">
            <el-input>
              <template #append>复制</template>
            </el-input>
          </el-form-item>

          <el-form-item label="拉流地址2：">
            <el-input>
              <template #append>复制</template>
            </el-input>
          </el-form-item>

          <el-form-item label="拉流地址3：">
            <el-input>
              <template #append>复制</template>
            </el-input>
          </el-form-item>
          <el-form-item>
            <el-button type="primary" @click="onSubmit">进入 直播间</el-button>
          </el-form-item>
        </el-form>
      </div>
    </el-card>
  </div>
</template>

<script setup>
import { reactive } from "vue-demi";
import { useRouter } from "vue-router";

const form = reactive({});

const router = useRouter();
const onSubmit = () => {
  router.push("/screenShare?channelName=331965572&chatRoomId=177884266");
};
</script>

<style scoped lang='scss'>
.set:before {
  content: " ";
  position: fixed;
  z-index: -1;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: #1e2a41;
  background-size: 100% auto;
}
.box-card {
  width: 35%;
  margin: 0 auto;
  margin-top: 10%;
  .set_body {
  }
}
</style>